package service;





import com.sqsf.javabean.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    private final User user;

    @Autowired
    public UserService(User user) {
        this.user = user;
    }

    public User getUserById(Integer id) {
        user.setUid(id);
        user.setUsername("John");
        user.setPassword("123456");
        user.setPhone("1234567890");
        return user;
    }
}